package c.e.b.f.a;

import c.e.b.f.a.c.c;
import c.e.b.f.a.c.d;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.ConcurrentHashMap;

/* compiled from: com.google.android.gms:play-services-measurement-api@@18.0.0 */
public class b implements a {
    public static volatile a c;
    public final c.e.a.b.f.a.a a;
    public final Map<String, Object> b = new ConcurrentHashMap();

    /* compiled from: com.google.android.gms:play-services-measurement-api@@18.0.0 */
    public class a implements c.e.b.f.a.a.a {
        public a(b bVar, String str) {
        }
    }

    public b(c.e.a.b.f.a.a aVar) {
        Objects.requireNonNull(aVar, "null reference");
        this.a = aVar;
    }

    public c.e.b.f.a.a.a a(String str, c.e.b.f.a.a.b bVar) {
        Objects.requireNonNull(bVar, "null reference");
        if (!c.a(str)) {
            return null;
        }
        Object obj = (str.isEmpty() || !this.b.containsKey(str) || this.b.get(str) == null) ? null : 1;
        if (obj != null) {
            return null;
        }
        Object bVar2;
        c.e.a.b.f.a.a aVar = this.a;
        if ("fiam".equals(str)) {
            bVar2 = new c.e.b.f.a.c.b(aVar, bVar);
        } else if ("crash".equals(str) || "clx".equals(str)) {
            bVar2 = new d(aVar, bVar);
        } else {
            bVar2 = null;
        }
        if (bVar2 == null) {
            return null;
        }
        this.b.put(str, bVar2);
        return new a(this, str);
    }

    /* JADX WARNING: Removed duplicated region for block: B:50:0x00b7  */
    /* JADX WARNING: Removed duplicated region for block: B:49:0x00b6 A:{RETURN} */
    public void b(java.lang.String r8, java.lang.String r9, android.os.Bundle r10) {
        /*
        r7 = this;
        if (r10 != 0) goto L_0x0007;
    L_0x0002:
        r10 = new android.os.Bundle;
        r10.<init>();
    L_0x0007:
        r3 = r10;
        r10 = c.e.b.f.a.c.c.a(r8);
        if (r10 != 0) goto L_0x000f;
    L_0x000e:
        return;
    L_0x000f:
        r10 = c.e.b.f.a.c.c.b;
        r10 = r10.contains(r9);
        r0 = 0;
        r1 = 1;
        if (r10 == 0) goto L_0x001a;
    L_0x0019:
        goto L_0x0032;
    L_0x001a:
        r10 = c.e.b.f.a.c.c.d;
        r10 = r10.iterator();
    L_0x0020:
        r2 = r10.hasNext();
        if (r2 == 0) goto L_0x0034;
    L_0x0026:
        r2 = r10.next();
        r2 = (java.lang.String) r2;
        r2 = r3.containsKey(r2);
        if (r2 == 0) goto L_0x0020;
    L_0x0032:
        r10 = 0;
        goto L_0x0035;
    L_0x0034:
        r10 = 1;
    L_0x0035:
        if (r10 != 0) goto L_0x0038;
    L_0x0037:
        return;
    L_0x0038:
        r10 = "_cmp";
        r10 = r10.equals(r9);
        if (r10 != 0) goto L_0x0042;
    L_0x0040:
        goto L_0x00b3;
    L_0x0042:
        r10 = c.e.b.f.a.c.c.a(r8);
        if (r10 != 0) goto L_0x004a;
    L_0x0048:
        goto L_0x00b4;
    L_0x004a:
        r10 = c.e.b.f.a.c.c.d;
        r10 = r10.iterator();
    L_0x0050:
        r2 = r10.hasNext();
        if (r2 == 0) goto L_0x0063;
    L_0x0056:
        r2 = r10.next();
        r2 = (java.lang.String) r2;
        r2 = r3.containsKey(r2);
        if (r2 == 0) goto L_0x0050;
    L_0x0062:
        goto L_0x00b4;
    L_0x0063:
        r10 = -1;
        r2 = r8.hashCode();
        r4 = 101200; // 0x18b50 float:1.41811E-40 double:4.99994E-319;
        r5 = 2;
        if (r2 == r4) goto L_0x008f;
    L_0x006e:
        r4 = 101230; // 0x18b6e float:1.41853E-40 double:5.00143E-319;
        if (r2 == r4) goto L_0x0084;
    L_0x0073:
        r4 = 3142703; // 0x2ff42f float:4.403865E-39 double:1.5527016E-317;
        if (r2 == r4) goto L_0x0079;
    L_0x0078:
        goto L_0x0099;
    L_0x0079:
        r2 = "fiam";
        r2 = r8.equals(r2);
        if (r2 != 0) goto L_0x0082;
    L_0x0081:
        goto L_0x0099;
    L_0x0082:
        r10 = 2;
        goto L_0x0099;
    L_0x0084:
        r2 = "fdl";
        r2 = r8.equals(r2);
        if (r2 != 0) goto L_0x008d;
    L_0x008c:
        goto L_0x0099;
    L_0x008d:
        r10 = 1;
        goto L_0x0099;
    L_0x008f:
        r2 = "fcm";
        r2 = r8.equals(r2);
        if (r2 != 0) goto L_0x0098;
    L_0x0097:
        goto L_0x0099;
    L_0x0098:
        r10 = 0;
    L_0x0099:
        r2 = "_cis";
        if (r10 == 0) goto L_0x00ae;
    L_0x009d:
        if (r10 == r1) goto L_0x00a8;
    L_0x009f:
        if (r10 == r5) goto L_0x00a2;
    L_0x00a1:
        goto L_0x00b4;
    L_0x00a2:
        r10 = "fiam_integration";
        r3.putString(r2, r10);
        goto L_0x00b3;
    L_0x00a8:
        r10 = "fdl_integration";
        r3.putString(r2, r10);
        goto L_0x00b3;
    L_0x00ae:
        r10 = "fcm_integration";
        r3.putString(r2, r10);
    L_0x00b3:
        r0 = 1;
    L_0x00b4:
        if (r0 != 0) goto L_0x00b7;
    L_0x00b6:
        return;
    L_0x00b7:
        r10 = "clx";
        r10 = r10.equals(r8);
        if (r10 == 0) goto L_0x00ce;
    L_0x00bf:
        r10 = "_ae";
        r10 = r10.equals(r9);
        if (r10 == 0) goto L_0x00ce;
    L_0x00c7:
        r0 = 1;
        r10 = "_r";
        r3.putLong(r10, r0);
    L_0x00ce:
        r10 = r7.a;
        r0 = r10.a;
        r4 = 1;
        r5 = 1;
        r6 = 0;
        r1 = r8;
        r2 = r9;
        r0.c(r1, r2, r3, r4, r5, r6);
        return;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.b.f.a.b.b(java.lang.String, java.lang.String, android.os.Bundle):void");
    }
}
